package com.example.springmvc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("hello")
@RestController
public class TestController {
    @RequestMapping(value = "t1",method = RequestMethod.GET)
    public String t1(){
        return "t1"; // 所以当前的阶段, 我们可以认为这个就是 view 返回的数据, 也可以理解成 view 层了

    }
}
